<?php $i=1;//echo form_open();
echo form_open(base_url().'admin/categeory/deleteimage/');?>

<table align="center" width="400" id="tableadmin">
   <thead>
  <h2 style="color:olive"> funzone images </h2>
   </thead>
    <?php if($query->num_rows() > 0)
{?>
   <tr>
<th>  Title 
</th>
<th>
Image
</th>
<th>
Delete
</th>
<th>
Edit
</th>
</tr>
   
<?foreach ($query->result() as $item): ?>
<?echo form_hidden('parentid',$item->parentid);?>


<tr>
	<td><input type="checkbox" id='c<?=$i?>' name="removeid[]" value=<?=$item->id?>>
<?=$item->title?>
    </td>
    <td>
    <img src="<?=base_url()?>assets/fun/thumbnail_<?=$item->id?>.jpg" alt="img" >
    </td>
    <td>
    <a href="<?=base_url()?>admin/categeory/deleteimage/<?=$item->id?>/<?=$item->parentid?>" onclick ='return confirm("are you sure want to delete");'><img src="<?=base_url();?>assets/imgs/delete.png" border='0'/></a>
    </td>
    <td>
   
   <a href="<?=base_url()?>admin/categeory/imageedit/<?=$item->id?>/<?=$item->parentid?>"><img src="<?=base_url();?>assets/imgs/edit.png" border='0' /></a>
	</td>
	</tr>

<?php $i++;endforeach ;?>
<tr>
</tr>
<tr>
		<td></td>
		<td><a  onclick="fun();" href="javascript:void(0)">checkall</a>&nbsp;
		<a  onclick="fun1();" href="javascript:void(0)">uncheckall</a></td>
		<td></td>
		<td></td>
	</tr>
<tr>
<td>
</td>
<td>
<? echo form_submit('remove','remove selected');?>  
</td>
<td></td>
<td>
</td>
</tr>   
<tr>
	<td colspan =4>
	  <?php echo $this->paginationnew->paginate();?>
	  </td>
	   </tr>   


 </form>
<? }else { ?>
	
<h2> No Images in this categeory</h2>	
<? }?>
</table>

